<?
foreach($result as $key=>$val){
?>
<tr>
	<td width="10" align="center">
	<input type="checkbox" name="client[]" id="client_check_box" value="<?=$val->client_id?>">
	</td>
	<td abbr="name" <? if(!strstr($client_users_field,',name,')) echo "style='display: none;'";?>><?=$val->name?></td>
	<td abbr="company_name" <? if(!strstr($client_users_field,',company_name,')) echo "style='display: none;'";?> id="Drigging"><?=$val->company_name?></td>
	<td abbr="mobile" <? if(!strstr($client_users_field,',mobile,')) echo "style='display: none;'";?>><?=$val->mobile?></td>
	<td abbr="home_phone" <? if(!strstr($client_users_field,',home_phone,')) echo "style='display: none;'";?>><?=$val->home_phone?></td>
	<td abbr="company_phone" <? if(!strstr($client_users_field,',company_phone,')) echo "style='display: none;'";?>><?=$val->company_phone?></td>
	<td abbr="fax" <? if(!strstr($client_users_field,',fax,')) echo "style='display: none;'";?>><?=$val->fax?></td>
	<td abbr="importance" <? if(!strstr($client_users_field,',importance,')) echo "style='display: none;'";?>><?
		if(isset($importance_of_customers[$val->importance])) 
			echo $importance_of_customers[$val->importance]; 
	?></td>
	<td abbr="home_address" <? if(!strstr($client_users_field,',home_address,')) echo "style='display: none;'";?>><?=$val->home_address?></td>
	<td abbr="company_address" <? if(!strstr($client_users_field,',company_address,')) echo "style='display: none;'";?>><?=$val->company_address?></td>
	<td abbr="broker" <? if(!strstr($client_users_field,',broker,')) echo "style='display: none;'";?>><?=$val->broker?></td>
	<td width="90px">
	<a href="<?=site_url('/client/data_edit/'.$val->client_id)?>" alt="編輯"><img src="/images/ico_edit_16.png" title="編輯" border="0"/></a>
	<a href="<?=site_url('/send_edm/index/'.$val->client_id)?>"><img src="/images/ico_email_16.png" title="發EDM" border="0"/></a>
	<a href="<?=site_url('/send_sms/index/'.$val->client_id)?>"><img src="/images/ico_sms_16.png" title="發簡訊" border="0"/></a>
	<a href="<?=site_url('/client/data_delete/'.$val->client_id)?>"><img src="/images/ico_delete_16.png" title="刪除" border="0"/></a></td>
</tr>
<?
}
?>				